package com.by.service.Impl;

import com.by.bean.UserFinally;
import com.by.bean.UserType;
import com.by.common.ex.BusinessException;
import com.by.common.utils.Assert;
import com.by.mapper.UserFinallyMapper;
import com.by.service.UserServiceFinally;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceFinallyImpl implements UserServiceFinally {
    @Autowired
    UserFinallyMapper userFinallyMapper;
    @Override
    public int checkUser(String account) {
        return userFinallyMapper.queryUserByUserName(account);
    }

    @Override
    public UserFinally queryByAccount(String account) {
        return userFinallyMapper.queryByAccount(account);
    }

    @Override
    public int add(UserFinally userFinally) {
        return userFinallyMapper.add(userFinally);
    }


}

